﻿
//-------------------------------------------------------------------------------
// <copyright file="SwfObjectAlternateContent.cs" company="GrannetDotNet Software">
//     Copyright © 2009 GrannetDotNet Software. All rights reserved.
// </copyright>
// <author>Grant Harmeyer</author>
//-------------------------------------------------------------------------------

namespace GrannetDotNet.Web.UI.WebControls
{
    using System.Web.UI;
    using System.Web.UI.WebControls;

    /// <summary>
    /// Control used to render the alternate content for an SwfObject
    /// </summary>
    public class SwfObjectAlternateContent 
        : PlaceHolder, INamingContainer, ITemplate
    {
        #region [ Methods ]

        /// <summary>
        /// Defines the Control object that child controls and templates belong to
        /// </summary>
        /// <param name="container">The Control object to contain the instances of controls from the inline template.</param>
        public void InstantiateIn(Control container)
        {
            container.Controls.Add(this);
        }

        #endregion
    }
}